import type { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'lucide:graduation-cap',    
      keepAlive: true,
      title: '考试管理',
      order: 1
    },
    name: 'Exam',
    path: '/exam',
    children: [
      {
        meta: {
          title: '题库管理',
        },
        name: 'QuestionBank',
        path: 'questionBank',
        component: () => import('#/views/manage/question-bank.vue'),
      },
      
      {
        meta: {
          title: '试卷管理',
        },
        name: 'Paper',
        path: 'paper',
        component: () => import('#/views/manage/paper.vue'),
      },
      
      {
        meta: {
          title: '考试管理',
          // hideInMenu:true,
        },
        name: 'ExaminationManagement',
        path: 'examinationMgr',
        component: () => import('#/views/manage/examination-mgr-index.vue'),
      },
      {
        meta: {
          title: '考试详情',
          hideInMenu: true,
        },
        name: 'ExaminationDetail',
        path: 'examDetail',
        component: () => import('#/views/manage/modules/examination-mgr/exam-detail.vue'),
      },
      {
        meta: {
          title: '批改试卷',
          hideInMenu: true,
        },
        name: 'ExaminationCorrection',
        path: 'examCorrection',
        component: () => import('#/views/manage/modules/examination-mgr/exam-correction.vue'),
      },
      // {
      //   meta: {
      //     title: '测试1',
      //     hideInMenu: true,
      //   },
      //   name: 'Test1',
      //   path: 'test1',
      //   component: () => import('#/views/manage/test1.vue'),
      // },
    ],
  },
];

export default routes;
